package brpc

import (
	"entry_task/backend/src/utils"
	api "entry_task/entry_api/service"
	"google.golang.org/grpc"
)

var userInfoCli api.UserInfoServiceClient

func init() {
	conn, err := grpc.Dial(":8088", grpc.WithInsecure())
	utils.CheckErr(err)
	userInfoCli = api.NewUserInfoServiceClient(conn)
}

func GetUserInfoClient() api.UserInfoServiceClient {
	return userInfoCli
}
